﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HA.ModFlow.Application
{
   public class MapDataTVM:HViewModel
    {

       public MapDataTVM()
       {

           this._tool = MAPDATATOOL.SELECT;
 
       }


       MAPDATATOOL _tool;

       public MAPDATATOOL Tool
       {
           get { return _tool; }
           set { 
               
               _tool = value;
               this.OnPropertyChanged("IsSelect");
               this.OnPropertyChanged("IsSelectNode");
               this.OnPropertyChanged("IsSelectVertex");
               this.OnPropertyChanged("IsSelectLine");
               this.OnPropertyChanged("IsSelectPolygon");
               this.OnPropertyChanged("IsAddPolygon");
               this.OnPropertyChanged("IsAddPolyLine");
               this.OnPropertyChanged("IsAddLine");
               this.OnPropertyChanged("IsAddPoint");
               this.OnPropertyChanged("IsAddVertex"); 
           }
       }
       bool _isSelect;

       public bool IsSelect
       {
           get
           {
               if (this.Tool == MAPDATATOOL.SELECT)
               {
                   return true;
               }
               else
               {
                   return false;
               }
           }
           set
           {
               this.Tool = MAPDATATOOL.SELECT;
             
           }
       }
       bool _isSelectNode;

       public bool IsSelectNode
       {
           get
           {
               if (this.Tool == MAPDATATOOL.SELECTNODE)
               {
                   return true;
               }
               else
               {
                   return false;
               }
           }
           set
           {
               this.Tool = MAPDATATOOL.SELECTNODE;           
           }
       }
       bool _isSelectVertex;

       public bool IsSelectVertex
       {
           get
           {
               if (this.Tool == MAPDATATOOL.SELECTVERTEX)
               {
                   return true;
               }
               else
               {
                   return false;
               }
           }
           set
           {
               this.Tool = MAPDATATOOL.SELECTVERTEX;
          
           }
       }
       bool _isSelectLine;

       public bool IsSelectLine
       {
           get
           {
               if (this.Tool == MAPDATATOOL.SELECTLINE)
               {
                   return true;
               }
               else
               {
                   return false;
               }
           }
           set
           {
               this.Tool = MAPDATATOOL.SELECTLINE;
               
           }
       }
       bool _isSelectPolygon;

       public bool IsSelectPolygon
       {
           get
           {
               if (this.Tool == MAPDATATOOL.SELECTPOLYGON)
               {
                   return true;
               }
               else
               {
                   return false;
               }
           }
           set
           {
               this.Tool = MAPDATATOOL.SELECTPOLYGON;
               
           }
       }
       bool _isAddPoint;

       public bool IsAddPoint
       {
           get
           {
               if (this.Tool == MAPDATATOOL.ADDPOINT)
               {
                   return true;
               }
               else
               {
                   return false;
               }
           }
           set
           {
               this.Tool = MAPDATATOOL.ADDPOINT;
             
           }
       }
       bool _isAddVertex;

       public bool IsAddVertex
       {
           get
           {
               if (this.Tool == MAPDATATOOL.ADDVERTEX)
               {
                   return true;
               }
               else
               {
                   return false;
               }
           }
           set
           {
               this.Tool = MAPDATATOOL.ADDVERTEX;
             
           }
       }
       bool _isAddLine;

       public bool IsAddLine
       {
           get
           {
               if (this.Tool == MAPDATATOOL.ADDLINE)
               {
                   return true;
               }
               else
               {
                   return false;
               }
           }
           set
           {
               this.Tool = MAPDATATOOL.ADDLINE;
               
           }
       }
       bool _isAddPolyLine;

       public bool IsAddPolyLine
       {
           get
           {
               if (this.Tool == MAPDATATOOL.ADDPOLYLINE)
               {
                   return true;
               }
               else
               {
                   return false;
               }
           }
           set
           {
               this.Tool = MAPDATATOOL.ADDPOLYLINE;
              
           }
       }
       bool _isAddPolygon;

       public bool IsAddPolygon
       {
           get
           {
               if (this.Tool == MAPDATATOOL.ADDPOLYGON)
               {
                   return true;
               }
               else
               {
                   return false;
               }
           }
           set
           {
               this.Tool = MAPDATATOOL.ADDPOLYGON;
              
           }
       }

       


    }
}
